package com.tzy.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * <p>
 * 评论表
 * </p>
 *
 * @author 谭同学
 * @since 2022-03-18
 */
@Slf4j
@Data
public class Comments implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 评论编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 父级编号
     */
    private Integer parentId;

    /**
     * 评价编号
     */
    private Integer evaluationId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 被回复人的id
     */
    private Integer replyId;

    /**
     * 回复时间
     */
    private LocalDateTime replyTime;

    private Integer idDeleted;

}
